package com.daedalus.Inheritanca.AdministrataDrejtor;

public class Drejtori extends Administrata{

	double perqindja;
	
	public Drejtori(String emri, String date, double paga, double perqind){
		super(emri,date, paga);
		setPerqindja(perqind);
	}
	
	public void setPerqindja(double perqind){
		perqindja=perqind>=0.0&&perqind<1.0?perqind:0.0;
	}
	public double getPerqindja(){
		return perqindja;
	}
	public double getTeArdhurat(){
		return getPaga()*(1+getPerqindja());
	}
	
}
